package com.jm.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 套餐对象rrr
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("setmeal")
public class Setmeal implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId
    private Long id;
    //套餐名称
    private String name;
    //分类id
    private Long categoryId;
    //套餐价格
    private BigDecimal price;
    //状态 0:停用 1:启用
    private Integer status;
    //图片
    private String image;
    //描述信息
    private String description;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    public Setmeal(Long id, Integer status) {
        this.id = id;
        this.status = status;
    }
}
